package exam_8_22;

import javax.swing.*;
import java.util.Arrays;
import java.util.Scanner;

public class MaoPao_35 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int []a = new int[5];
        for (int i= 0;i<5;i++){
            a[i]=in.nextInt();
        }
        for (int i=0;i<a.length;i++){
            for (int j=i+1;j<a.length;j++){
                if (a[i]>a[j]){
                    a[i] += a[j];
                    a[j] = a[i]-a[j];
                    a[i]-=a[j];
                }
            }
        }
        System.out.println(Arrays.toString(a));
    }

}
